package com.autohome.wz.business.order.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class CouponBatchExtend implements Serializable {
    private Integer id;

    private String batchExtendNo;

    private String batchNo;

    private BigDecimal money;

    private String rule;

    private Integer num;

    private Integer validTimeType;

    private Date validStartTime;

    private Date validEndTime;

    private Integer validDays;

    private Integer couponType;

    private Integer countNum;

    private Integer relevanceNum;

    private Integer bindNum;

    private String codeNoMax;

    private Integer businessType;

    private String batchExtendTitle;

    private BigDecimal maxPreferentialPrice;

    private BigDecimal discountPrice;

    private Integer ruleType;

    private String urlUse;

    private Integer limitUseFlag;

    private Integer isNewRule;

    private Integer tempid;

    private Integer ratio;

    private Integer couponFlag;

    private String ruleDesc;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBatchExtendNo() {
        return batchExtendNo;
    }

    public void setBatchExtendNo(String batchExtendNo) {
        this.batchExtendNo = batchExtendNo == null ? null : batchExtendNo.trim();
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo == null ? null : batchNo.trim();
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule == null ? null : rule.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getValidTimeType() {
        return validTimeType;
    }

    public void setValidTimeType(Integer validTimeType) {
        this.validTimeType = validTimeType;
    }

    public Date getValidStartTime() {
        return validStartTime;
    }

    public void setValidStartTime(Date validStartTime) {
        this.validStartTime = validStartTime;
    }

    public Date getValidEndTime() {
        return validEndTime;
    }

    public void setValidEndTime(Date validEndTime) {
        this.validEndTime = validEndTime;
    }

    public Integer getValidDays() {
        return validDays;
    }

    public void setValidDays(Integer validDays) {
        this.validDays = validDays;
    }

    public Integer getCouponType() {
        return couponType;
    }

    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
    }

    public Integer getCountNum() {
        return countNum;
    }

    public void setCountNum(Integer countNum) {
        this.countNum = countNum;
    }

    public Integer getRelevanceNum() {
        return relevanceNum;
    }

    public void setRelevanceNum(Integer relevanceNum) {
        this.relevanceNum = relevanceNum;
    }

    public Integer getBindNum() {
        return bindNum;
    }

    public void setBindNum(Integer bindNum) {
        this.bindNum = bindNum;
    }

    public String getCodeNoMax() {
        return codeNoMax;
    }

    public void setCodeNoMax(String codeNoMax) {
        this.codeNoMax = codeNoMax == null ? null : codeNoMax.trim();
    }

    public Integer getBusinessType() {
        return businessType;
    }

    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    public String getBatchExtendTitle() {
        return batchExtendTitle;
    }

    public void setBatchExtendTitle(String batchExtendTitle) {
        this.batchExtendTitle = batchExtendTitle == null ? null : batchExtendTitle.trim();
    }

    public BigDecimal getMaxPreferentialPrice() {
        return maxPreferentialPrice;
    }

    public void setMaxPreferentialPrice(BigDecimal maxPreferentialPrice) {
        this.maxPreferentialPrice = maxPreferentialPrice;
    }

    public BigDecimal getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Integer getRuleType() {
        return ruleType;
    }

    public void setRuleType(Integer ruleType) {
        this.ruleType = ruleType;
    }

    public String getUrlUse() {
        return urlUse;
    }

    public void setUrlUse(String urlUse) {
        this.urlUse = urlUse == null ? null : urlUse.trim();
    }

    public Integer getLimitUseFlag() {
        return limitUseFlag;
    }

    public void setLimitUseFlag(Integer limitUseFlag) {
        this.limitUseFlag = limitUseFlag;
    }

    public Integer getIsNewRule() {
        return isNewRule;
    }

    public void setIsNewRule(Integer isNewRule) {
        this.isNewRule = isNewRule;
    }

    public Integer getTempid() {
        return tempid;
    }

    public void setTempid(Integer tempid) {
        this.tempid = tempid;
    }

    public Integer getRatio() {
        return ratio;
    }

    public void setRatio(Integer ratio) {
        this.ratio = ratio;
    }

    public Integer getCouponFlag() {
        return couponFlag;
    }

    public void setCouponFlag(Integer couponFlag) {
        this.couponFlag = couponFlag;
    }

    public String getRuleDesc() {
        return ruleDesc;
    }

    public void setRuleDesc(String ruleDesc) {
        this.ruleDesc = ruleDesc == null ? null : ruleDesc.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CouponBatchExtend other = (CouponBatchExtend) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBatchExtendNo() == null ? other.getBatchExtendNo() == null : this.getBatchExtendNo().equals(other.getBatchExtendNo()))
            && (this.getBatchNo() == null ? other.getBatchNo() == null : this.getBatchNo().equals(other.getBatchNo()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getRule() == null ? other.getRule() == null : this.getRule().equals(other.getRule()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getValidTimeType() == null ? other.getValidTimeType() == null : this.getValidTimeType().equals(other.getValidTimeType()))
            && (this.getValidStartTime() == null ? other.getValidStartTime() == null : this.getValidStartTime().equals(other.getValidStartTime()))
            && (this.getValidEndTime() == null ? other.getValidEndTime() == null : this.getValidEndTime().equals(other.getValidEndTime()))
            && (this.getValidDays() == null ? other.getValidDays() == null : this.getValidDays().equals(other.getValidDays()))
            && (this.getCouponType() == null ? other.getCouponType() == null : this.getCouponType().equals(other.getCouponType()))
            && (this.getCountNum() == null ? other.getCountNum() == null : this.getCountNum().equals(other.getCountNum()))
            && (this.getRelevanceNum() == null ? other.getRelevanceNum() == null : this.getRelevanceNum().equals(other.getRelevanceNum()))
            && (this.getBindNum() == null ? other.getBindNum() == null : this.getBindNum().equals(other.getBindNum()))
            && (this.getCodeNoMax() == null ? other.getCodeNoMax() == null : this.getCodeNoMax().equals(other.getCodeNoMax()))
            && (this.getBusinessType() == null ? other.getBusinessType() == null : this.getBusinessType().equals(other.getBusinessType()))
            && (this.getBatchExtendTitle() == null ? other.getBatchExtendTitle() == null : this.getBatchExtendTitle().equals(other.getBatchExtendTitle()))
            && (this.getMaxPreferentialPrice() == null ? other.getMaxPreferentialPrice() == null : this.getMaxPreferentialPrice().equals(other.getMaxPreferentialPrice()))
            && (this.getDiscountPrice() == null ? other.getDiscountPrice() == null : this.getDiscountPrice().equals(other.getDiscountPrice()))
            && (this.getRuleType() == null ? other.getRuleType() == null : this.getRuleType().equals(other.getRuleType()))
            && (this.getUrlUse() == null ? other.getUrlUse() == null : this.getUrlUse().equals(other.getUrlUse()))
            && (this.getLimitUseFlag() == null ? other.getLimitUseFlag() == null : this.getLimitUseFlag().equals(other.getLimitUseFlag()))
            && (this.getIsNewRule() == null ? other.getIsNewRule() == null : this.getIsNewRule().equals(other.getIsNewRule()))
            && (this.getTempid() == null ? other.getTempid() == null : this.getTempid().equals(other.getTempid()))
            && (this.getRatio() == null ? other.getRatio() == null : this.getRatio().equals(other.getRatio()))
            && (this.getCouponFlag() == null ? other.getCouponFlag() == null : this.getCouponFlag().equals(other.getCouponFlag()))
            && (this.getRuleDesc() == null ? other.getRuleDesc() == null : this.getRuleDesc().equals(other.getRuleDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBatchExtendNo() == null) ? 0 : getBatchExtendNo().hashCode());
        result = prime * result + ((getBatchNo() == null) ? 0 : getBatchNo().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getRule() == null) ? 0 : getRule().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getValidTimeType() == null) ? 0 : getValidTimeType().hashCode());
        result = prime * result + ((getValidStartTime() == null) ? 0 : getValidStartTime().hashCode());
        result = prime * result + ((getValidEndTime() == null) ? 0 : getValidEndTime().hashCode());
        result = prime * result + ((getValidDays() == null) ? 0 : getValidDays().hashCode());
        result = prime * result + ((getCouponType() == null) ? 0 : getCouponType().hashCode());
        result = prime * result + ((getCountNum() == null) ? 0 : getCountNum().hashCode());
        result = prime * result + ((getRelevanceNum() == null) ? 0 : getRelevanceNum().hashCode());
        result = prime * result + ((getBindNum() == null) ? 0 : getBindNum().hashCode());
        result = prime * result + ((getCodeNoMax() == null) ? 0 : getCodeNoMax().hashCode());
        result = prime * result + ((getBusinessType() == null) ? 0 : getBusinessType().hashCode());
        result = prime * result + ((getBatchExtendTitle() == null) ? 0 : getBatchExtendTitle().hashCode());
        result = prime * result + ((getMaxPreferentialPrice() == null) ? 0 : getMaxPreferentialPrice().hashCode());
        result = prime * result + ((getDiscountPrice() == null) ? 0 : getDiscountPrice().hashCode());
        result = prime * result + ((getRuleType() == null) ? 0 : getRuleType().hashCode());
        result = prime * result + ((getUrlUse() == null) ? 0 : getUrlUse().hashCode());
        result = prime * result + ((getLimitUseFlag() == null) ? 0 : getLimitUseFlag().hashCode());
        result = prime * result + ((getIsNewRule() == null) ? 0 : getIsNewRule().hashCode());
        result = prime * result + ((getTempid() == null) ? 0 : getTempid().hashCode());
        result = prime * result + ((getRatio() == null) ? 0 : getRatio().hashCode());
        result = prime * result + ((getCouponFlag() == null) ? 0 : getCouponFlag().hashCode());
        result = prime * result + ((getRuleDesc() == null) ? 0 : getRuleDesc().hashCode());
        return result;
    }
}